<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>科目</title>
    <%@ include file="/WEB-INF/views/commons/common.jsp"%>
    <script type="text/javascript" src="/static/js/system/subject.js"></script>
</head>
<body>
<%--数据表格--%>
<table id="subject_datagrid" fit="true"></table>


<%--表格工具栏--%>
<div id="tb">
    <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
    <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
    <input  class="easyui-textbox" prompt="按科目名或所属课程名搜索" style="width: 200px" type="text" name="keyword" id="keyword">
        <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="searchT">查询</a>


</div>

<%--添加和编辑弹窗--%>
<div id="edit_dialog" align="center">
    <form id="edit_form" method="post">
        <table align="center" style="margin-top: 20px;
                border-collapse:separate; border-spacing:0px 10px;">
            <input type="hidden" id="deptId" name="id">
            <tr>
                <td>科目名称:</td>
                <td><input class="easyui-textbox" name="name"/></td>
            </tr>
            <tr>
                <td>Vip科目:</td>
                <td><input class="easyui-combobox" name="vipSubject" data-options="
                          editable:false,
                          valueField:'value',
                          textField:'text',
                          data:[
                                {
                                    text:'是',
                                     value:'1',
                                },{
                                    text:'不是',
                                    value:'0',
                                }],
                          panelHeight:'auto'
                    "/>
                </td>
            </tr>
            <tr>
                <td>科目编号:</td>
                <td><input class="easyui-textbox" name="subjectNo"  />

                </td>
            </tr>

            <tr>
                <td>课程:</td>
                <td><input class="easyui-combobox" name="course.id" data-options="
                          url:'/course/listData.do',
                          valueField:'id',
                          textField:'name',
                          panelHeight:'auto'
                    "/>
                </td>
            </tr>

            <tr>
                <td>备注:</td>
                <td><input class="easyui-textbox" name="remark"/></td>
            </tr>
        </table>
    </form>
</div>

<%--弹窗底部按钮--%>
</div>
<div id="bb">
    <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
</div>

</body>
</html>
